package com.esri.core.geometry;

import java.nio.ByteBuffer;

/* loaded from: classes.dex */
class SimpleByteBufferCursor extends ByteBufferCursor {
    ByteBuffer a;
    int b = -1;
    int c = 1;

    public SimpleByteBufferCursor(ByteBuffer byteBuffer) {
        this.a = byteBuffer;
    }

    @Override // com.esri.core.geometry.ByteBufferCursor
    public int getByteBufferID() {
        return this.b;
    }

    @Override // com.esri.core.geometry.ByteBufferCursor
    public ByteBuffer next() {
        int i = this.b;
        if (i < this.c - 1) {
            this.b = i + 1;
            return this.a;
        }
        return null;
    }
}
